Already a member? Log in

Sign up with your...

or

Sign Up with your email address

Add Tags

Duplicate Tags

Rename Tags

Add Bookmark

Share It With Others!

Save Link

Sign in

Sign Up with your email address

Sign up

By clicking the button, you agree to the Terms & Conditions.

Forgot Password?

Please enter your username below and press the send button.
A password reset link will be sent to you.

If you are unable to access the email address originally associated with your Delicious account, we recommend creating a new account.

Links 1 through 10 of 19 by J. Albert Bowden II tagged {float:}

Share It With Others!

Share It With Others!

Stacking and float

For floating blocks the stacking order is a bit different. Floating blocks are placed between non-positioned blocks and positioned blocks:

1. Background and borders of the root element
2. Descendant blocks in the normal flow, in order of appearance (in HTML)
3. Floating blocks
4. Descendant positioned elements, in order of appearance (in HTML)

Actually, as you can see in the following example, the background and border of the non-positioned block (DIV #4) is completely unaffected by floating blocks, while the content is affected. This happens according to CSS standard float behaviour.

This behaviour can be explained with an improved version of the previous ordered list:

1. Background and borders of the root element
2. Descendant blocks in the normal flow, in order of appearance (in HTML)
3. Floating blocks
4. Inline descendants in the normal flow
5. Descendant positioned elements, in order of appearance (in HTML)

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!

Share It With Others!